package com.uniknow.app.action;

import java.sql.SQLException;
import java.util.HashMap;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;

import com.uniknow.app.manager.DatabaseHelper;
import com.uniknow.app.manager.FriendManager;

/**
 * 朋友表Action
 * @author lianjiao 
 * @created 2013-11-19
 */
public class ActionFriend {
	private Context mContext;
	
	public ActionFriend (Context context){
		super();
		mContext = context;
	}
	/**
	 * 初始化朋友表数据
	 * @author lianjiao 
	 * @created 2013-11-21
	 */
	public void init(){
		try {
			DatabaseHelper.getHelper(mContext).deleteData(com.uniknow.app.bin.TBFriend.class);
		} catch (SQLException e) {
			e.printStackTrace();
		}
	}
	/**
	 * 更新朋友表数据
	 * @author lianjiao 
	 * @created 2013-11-21
	 */
	public void Update(){
		
	}
	/**
	 * 设置Hot值
	 * @author lianjiao 
	 * @created 2013-12-23
	 * @param FriendList
	 */
	public void SetHotValue(HashMap<String,Integer> FriendList){
		//SQLiteDatabase db = DatabaseHelper.OpenDataBase(mContext);
		//DataFriendHelper.SetHotValue(FriendList, db);
		//FindHotLis();
		
	}
	
	public void FindHotLis(){
		//FriendManager a =new FriendManager(mContext, clazz).FindHotList(mContext);
	}
}
